<?php if(!empty($subvo)){
    $v = $subvo;
    unset($subvo);
}
if(!empty($subsubvo)){
    $v = $subsubvo; 
    $subsubvo = '';
}
?>
<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  
 
  <?php $isTab = $v['isTab'];
  $effect = $v['effect'];
  $autoPlay = $v['autoPlay'];
  $vmid = $v['id'];
  $interTime = $v['interTime'];
   if($isTab > 0){?>
   <!-- 启用切换子模块效果 --> 
 
   
   <!-- 启用切换子模块效果 --> 
  <div class="slideTxtBox<?php echo $vmid;?>">
  
  
			<div class="hd" style="">
            <a href="javascript:void(0);" class="next pagination"></a><a href="javascript:void(0);" class="prev pagination"></a>
				<ul class="tab">
              <?php foreach($v['sub'] as $key => $subvo){?>
                <li class="focus<?php echo $subvo['id'];?><?php echo $key;?>"><a class="focus" href="javascript:void(0);"><?php echo $subvo['title'];?></a></li>
                <?php }?>
                </ul>
			</div>
			<div class="bd">
   <!-- 启用切换子模块效果 -->
<?php }?> 
    <?php foreach($v['sub'] as $key => $subvo){
   
    include('./Tpl/Home/TemplateDefault/Modules-'.$subvo['filename'].C('TMPL_TEMPLATE_SUFFIX'));

    }?>
    
    <?php if($isTab > 0){?>
  <!-- 启用切换子模块效果 -->  
    </div>
		</div>

		<script>
		//$.holdReady(false);
		$(document).ready(function(e) { 
            $(".slideTxtBox<?php echo $vmid;?>").slide( {interTime:<?php echo $interTime;?>, effect:'<?php echo $effect;?>',autoPlay:<?php echo $autoPlay;?>,trigger:'mouseover' });
        }); 
		
		</script>
    
<!--启用切换子模块效果 --> 
<?php }
?>  
    
    
    
  <div class="clearfix"></div>
</div>

